﻿using System.Collections.Generic;

namespace JinYuan.MES.Models
{
    internal class UploadDeviceCollectData
    {
        /// <summary>
        /// 应用id,对应不同系统对接
        /// </summary>
        public string appid { get; set; }
        /// <summary>
        /// 采集指标类型和具体值的集合
        /// </summary>
        public List<Collect_code_value_list> collect_code_value_list { get; set; }
        /// <summary>
        /// 采集时间，unix时间戳，整数类型
        /// </summary>
        public long collect_time { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string device_code { get; set; }
    }
    public class Collect_code_value_list
    {
        /// <summary>
        /// 指标类型，1 温度 2湿度 3露点 4粉尘 5风速，整数类型
        /// </summary>
        public int target_code { get; set; }
        /// <summary>
        /// 指标对应采集值,若是某个指标或某个指标的某个值未采集到，则传N
        /// </summary>
        public string target_value { get; set; }
        /// <summary>
        /// 风速仪标签，风速仪值对应target_value
        /// </summary>
        public string target_value_tag { get; set; }
    }


    public class UploadDeviceCollectDataResult
    {
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
    }

    public class Data
    {
    }
}
